home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cato
/
Xm
/
XmTextReplace.z
/
XmTextReplace
Wrap
Text File
|
1998-10-20
|
5KB
|
133 lines
XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee - A Text function that replaces part of a text
string
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////TTTTeeeexxxxtttt....hhhh>>>>
vvvvooooiiiidddd XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee ((((_w_i_d_g_e_t, _f_r_o_m__p_o_s, _t_o__p_o_s, _v_a_l_u_e))))
WWWWiiiiddddggggeeeetttt _w_i_d_g_e_t;;;;
XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn_f_r_o_m__p_o_s;;;;
XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn_t_o__p_o_s;;;;
cccchhhhaaaarrrr * _v_a_l_u_e;;;;
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents version 1.2 of the Motif library.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee replaces part of the text string in the Text
widget. The character positions begin at zero and are
numbered sequentially from the beginning of the text.
An example text replacement would be to replace the second
and third characters in the text string. To accomplish
this, the parameter _f_r_o_m__p_o_s must be 1 and _t_o__p_o_s must be 3.
To insert a string after the fourth character, both
parameters, _f_r_o_m__p_o_s and _t_o__p_o_s, must be 4.
This routine calls the widget's XXXXmmmmNNNNvvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk and
verification callbacks, either XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk or
XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkkWWWWccccssss, or both. If both verification
callback lists are registered, the procedures of the
XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk list are executed first and the
resulting data is passed to the XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkkWWWWccccssss
callbacks.
_w_i_d_g_e_t Specifies the Text widget ID
_f_r_o_m__p_o_s
Specifies the start position of the text to be
replaced
_t_o__p_o_s Specifies the end position of the text to be replaced
_v_a_l_u_e Specifies the character string value to be added to
the text widget
For a complete definition of Text and its associated
resources, see XXXXmmmmTTTTeeeexxxxtttt((((3333XXXX)))).
RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
PPPPaaaaggggeeee 1111 ((((pppprrrriiiinnnntttteeeedddd 4444////33330000////99998888))))
XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee((((3333XXXX))))
XXXXmmmmTTTTeeeexxxxtttt((((3333XXXX)))) and XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeeeWWWWccccssss((((3333XXXX)))).
Page 2 (printed 4/30/98)